/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.cloudminga.gui;

import com.cloudminga.database.DataBase_UserBackupInfo;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;

/**
 *
 * @author USER
 */
public class BackupDisplay extends JFrame {

    public BackupDisplay()
    {
        //TableModel tm;
        DataBase_UserBackupInfo backupObj=new DataBase_UserBackupInfo();
       
    //DataBase_UserBackupInfo backupObj= new DataBase_UserBackupInfo("manish@globussoft.com");
  

    JTable table= new JTable(backupObj.get_TableModel("manish@globussoft.com"));
    JScrollPane scPane = new JScrollPane(table);
    //int vColIndex = 0;
    table.getColumnModel().getColumn(0).setHeaderValue("Id");
    table.getColumnModel().getColumn(1).setHeaderValue("Email");
    table.getColumnModel().getColumn(2).setHeaderValue("Machine");
    table.getColumnModel().getColumn(3).setHeaderValue("MacId");
    table.getColumnModel().getColumn(4).setHeaderValue("IP");
    table.getColumnModel().getColumn(5).setHeaderValue("UserSpace");
    table.getColumnModel().getColumn(6).setHeaderValue("LastBackup");
         
    getContentPane().add(scPane);

   
    }

    public void DisplayBackupDetail()
    {
        try{


        }
        catch(Exception e)
        {
          e.printStackTrace();
        }

    }

     public static void main(String r[])
    {
        BackupDisplay obj=new BackupDisplay();
        obj.DisplayBackupDetail();
        obj.setVisible(true);
        obj.setSize(400,400);

    }

}
